/*
 * @Author: Clark
 * @Email: haixuanwoTxh@gmail.com
 * @Date: 2022-12-29 15:25:28
 * @LastEditors: Clark
 * @LastEditTime: 2022-12-29 17:42:08
 * @Description: file content
 */

#include <cstdlib>
#include <iostream>
#include <string>

std::string say_hello()
{
#ifdef IS_INTEL_CXX_COMPILER
    return std::string("Hello Intel compiler!");
#elif IS_GNU_CXX_COMPILER
  // only compiled when GNU compiler is selected
  // such compiler will not compile the other branches
  return std::string("Hello GNU compiler!");
#elif IS_PGI_CXX_COMPILER
    return std::string("Hello PGI compiler!")
#elif IS_XL_CXX_COMPILER
    return std::string("Hello XL compiler!")
#else
    return std::string("Hello unkonw compiler - have we met before?");
#endif
}

int main()
{
    std::cout << say_hello() << std::endl;
    std::cout << "compiler name is " COMPILER_NAME << std::endl;
    return EXIT_SUCCESS;
}
